package team.tinavv.ssheasy.sys.action;

import java.util.List;

import org.apache.struts2.convention.annotation.Namespace;
import org.springframework.beans.factory.annotation.Autowired;

import team.tinavv.ssheasy.core.util.WebUtil;
import team.tinavv.ssheasy.model.SysUser;
import team.tinavv.ssheasy.sys.service.SysUserService;

import com.opensymphony.xwork2.ActionSupport;

@Namespace("/sysuser")
public class SysUserAction extends ActionSupport {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Autowired
	private SysUserService sysUserService;

	/**
	 * 查询系统用户信息列表返回json数据
	 */
	public void list() {
		List<SysUser> list = sysUserService.findAll();
		WebUtil.outputForJson(list);
	}
}
